package cn.bdqn.service.impl;

import cn.bdqn.dao.DistrictDao;
import cn.bdqn.dao.impl.DistrictDaoImpl;
import cn.bdqn.entity.District;
import cn.bdqn.service.DistrictService;

import java.sql.SQLException;
import java.util.List;


public class DistrictServiceImpl implements DistrictService {

    private DistrictDao districtDao = new DistrictDaoImpl();

    @Override
    public List<District> findAll() {
        try {
            List<District> list = districtDao.findAll();
            return list;
        } catch (SQLException e) {
            e.printStackTrace();
            return null;
        } finally {
        }
    }
}
